<template>
    <i class="iconfont" :class="icon" @click="handleClick"></i>
</template>

<script type="text/ecmascript-6">
    /**
     * @author 白雨浓
     * @date 2018/9/27 21:00
     *
     *
     **/
    export default {
        name: 'Iconfont',
        props: {
            icon: {
                type: String,
                required: true
            }
        },
        data() {
            return {}
        },
        mounted() {
            this.$nextTick(() => {

            })
        },
        methods: {
            handleClick(evt) {
                this.$emit('click', evt);
            }
        }
    }
</script>